package com.smt.ejb3.tutoria.callback.listenerclass;

import javax.persistence.PostPersist;
import javax.persistence.PrePersist;

public class BananaListener {
	
	@PrePersist
	public void preSave(Banana b){
		System.out.println("Banana "+b.getName()+" will be saved");
	}
	
	@PostPersist
	public void postSave(Banana b){
		System.out.println("Banana "+b.getName()+" was saved");
	}
}
